const { Comment } = require('../../model/comment');
module.exports = async(req, res) => {
    await Comment.create({
        content: req.body.content,
        uid: req.body.uid,
        aid: req.body.aid,
        time: new Date()
    })
    res.redirect('/home/article?id=' + req.body.aid);

}